package com.elvish.efast.common.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 分页实体类
 *
 * @author elvish
 * @date 2018/11/3 14:35
 * @blog oschina(https : / / my.oschina.net / xiaozhutefannao)
 */
public class Page implements Serializable {
    /**
     * 当前页
     */
    private int page = 1;
    /**
     * 每页行数
     */
    private int limit = 999;
    /**
     * 总条数
     */
    private long totalCount;
    /**
     * 总页数
     */
    private int pageCount;
    /**
     * 排序列表
     */
    private List<Sort> sort;

    public Page() {

    }

    public Page(int page, int limit) {
        super();
        this.page = page;
        this.limit = limit;
    }

    public Page(String page, String limit) {
        super();
        this.page = Integer.parseInt(page);
        this.limit = Integer.parseInt(limit);
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public List<Sort> getSort() {
        return sort;
    }

    public void setSort(List<Sort> sort) {
        this.sort = sort;
    }

}
